package com.zj.service;


import com.zj.model.Category;
import com.zj.web.bean.CategoryDTO;

import java.util.List;

public interface CategoryService {
    //分类正常
    public final static Integer CATEGORY_STATUS_NORMAL = 1;
    //分类消失
    public final static Integer CATEGORY_STATUS_DELETE = 0;


    public CategoryDTO addCategory(CategoryDTO categoryDTO);
    //根据状态查询分类信息
    public List<CategoryDTO> getCategories(Integer categoryStatus);
    //根据分类id查询分类信息
    public CategoryDTO getCategoryById (Long categoryId);
    //根据id修改类别的状态
    public CategoryDTO updateCategoryStatus(Long categoryId,Integer categoryStatus);
    //更新分类信息
    public CategoryDTO updateCategory(CategoryDTO categoryDTO);
}
